President-elect Donald Trump is urging Republicans to block a bill designed to protect journalists from government surveillance.