UK members of parliament (MPs) have rejected a proposal to delay the UK's departure from the EU that was put forward to prevent a no-deal Brexit.