A crucial Brexit bill has passed its latest stage in Parliament, but Tory MPs have threatened to stage a rebellion next month.