US president Barack Obama maintained his commitment to renewable energy in his State of the Union address on Tuesday night.