There really is a very weak moral justification for these weapons that mainly relies on the concept of deterrence—that their purpose is to prevent another country from attacking you with them. That case is so weak that you see major global institutions like the U.S. Catholic Church condemn nuclear weapons as immoral.