Government narrowly avoids a fourth Lords welfare reform defeat