BERLIN—Germany will remain part of NATO’s nuclear sharing agreement under its new government, according to a coalition deal agreed on Wednesday, a move that will prevent a rift in the Western military alliance at a time of rising tensions with Russia. Germany does not possess nuclear weapons, but hosts U.S. nuclear bombs that German Tornado…