US president's move comes amid efforts to legalise marijuana federally after recent success of state-level campaigns.