President Barack Obama warned US lawmakers that if they reject a deal to restrict Iran's nuclear program they will destroy Washington's international credibility.