Bill to stay in EU customs union fails despite support of 60 rebel Labour MPs