The government defeated the rebel motion by 297 votes to 117 in the 659-seat House of Commons .