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 fighter jets are meant to carry to target during a conflict. It had not been clear how the incoming government would handle the issue, as some lawmakers in the new coalition oppose Berlin’s participation in the nuclear sharing deal. The coalition agreement supported fulfilling Germany’s commitments to NATO. “As long as nuclear weapons play a role in NATO’s strategic concept, Germany has an interest in participating in strategic discussions and planning processes,” the document said, referring to Berlin’s seat on NATO’s Nuclear Planning Group. The new coalition also aims to replace the German air force’s …