President Trump’s effort to pressure Ukraine for information he could use against political rivals came as he was being urged to adopt a hostile view of that country by its regional adversaries, including Russian President Vladimir Putin, current and former U.S. officials said.