The bill passed 227-203, along mostly party lines on 19 December 2017, from which it headed to the Senate .