The government avoids a House of Lords defeat over its plans to replace the Disability Living Allowance.