The deal is sure to face criticism from lawmakers.