President Donald Trump signed a measure Wednesday aimed at curbing online sex trafficking, marking a rare bipartisan victory in Washington.