(Reuters) – SolarCity Corp agreed to Tesla Motors Inc’s $2.6 billion offer to buy the solar panel installer, the companies said on Monday, clearing one obstacle in the way of Elon Musk’s ambitious plans for a carbon-free energy and transportation company.