The House of Commons gave a resounding yes to the government’s proposal to stop MPs from working as political consultants by 297 votes to zero.