The US president said both parties have agreed to the deal