John McDonnell joins Tories in voting down Labour MP's amendment to protect customs union