Russian forces on Friday appeared close to capturing the strategic port city of Mariupol, a development that would be a significant victory for Moscow after a series of setbacks this week, including a tentative but looming European Union ban on Russian oil and the loss in the Black Sea of its flagship vessel, which Ukraine said it struck in a missile attack.