The government was forced into concessions on its welfare plan following a backlash among its own MPs.