California has set a goal of 100 percent renewable energy by the year 2045 under legislation signed by Gov. Jerry Brown on Monday.