Long a leader and trendsetter in its clean-energy goals, California took a giant step on Wednesday, becoming the first state to require all new homes to have solar power. The new requirement, to take effect in two years, brings solar power into the mainstream in a way it has never been until now.