The Arizona Supreme Court sided with state water regulators in a case that clears the way for thousands of homes to be built near the San Pedro River.