He shut down the government for 30+ days and he got a worse deal than he was offered before the shutdown. The GOP can't take another shutdown, which is why they reached this agreement. Trump has no option but to sign it.
__________________
Self filed AOS │Apps Received By USCIS - 3/18/19
│Biometrics Done - 4/11/19
Interview Scheduled - 4/24/19│Interview Date - 5/31/19│AOS Approval - 5/31/19
Permanent Resident Card Received - 6/8/19