Ending the longstanding program is expected to impact hundreds of millions of dollars that have gone toward countries that border Russia.