The California Energy Commission (CEC) on Wednesday adopted new building standards that will require nearly all new homes in the state to have solar panels from 2020 onwards.