In his address to the U.N. General Assembly earlier Wednesday , Obama stuck to his two-pronged approach to Iran - acknowledging its right to the peaceful use of nuclear energy while warning of unspecified penalties if it veers onto the weapons path .