MOSCOW—Russia has banned investors from so-called unfriendly countries from selling shares in key energy projects and banks until the end of the year, stepping up pressure in the sanctions stand-off with the West. Western countries and allies, including Japan, have piled financial restrictions on Russia since it sent troops into Ukraine in late February. Moscow…