Clean energy investment rose for the first time in three years in 2014, overcoming a slump in oil prices that unsettled the outlook for the industry.