Texas congressman sworn in after beating Trump-backed rival