Government secures victory in welfare bill vote after making significant compromises to appease rebels