Republicans have struggled to unite to pass sweeping legislation or do much else this year — including giving President Trump strong party backing.