California became the second U.S. state to allow agencies to purify wastewater and turn it into tap water as a way of adapting to drought conditions.