BERLIN—Germany took control of the German business of Russian oil giant Rosneft Oil Co. as Berlin races to safeguard its energy supplies before its planned ban on Russian oil imports kicks in later this year. The German government said it would place Rosneft’s German subsidiaries under trusteeship. …