The president warned Iran that there would be a "price" for delaying a deal.