The California Supreme Court says cities have broad authority to require builders to include a certain percentage of affordable housing in new projects.

The ruling on Monday keeps affordable housing requirements approved in more than 170 California cities intact.

At issue was a 2010 San Jose law that requires some new residential developments to set aside 15 percent of their units for sale at below-market rates.

The California Building Industry Association said the city failed to justify the 15 percent requirement and should base any such requirement on an assessment of any negative effect the market-rate housing would have.