U.S. crude oil ended lower on Thursday, after Iran and the world powers reached a deal in broad general terms which will curtail Tehran’s nuclear program for uranium enrichment.