There definitely are justifications. Maybe not sufficient to justify the damage done, but it's not like the Navy is just screwing with whales for grins.
Almost all industrial scale processes, including building your house, endanger animal life in one way or another, whether it's particulate creation from fossil fuels, migrating birds in wind turbines, or simple destruction of habitat.
A better argument, to me, would be that dolphins and whales exhibit intelligence on par with the great apes. Dolphins have the largest number of neurons in the neocortex of any mammal, communicate with one another, transmit culture from generation to generation, and work in tandem with humans even in the wild.
There's at least a decent argument to be made that they may be sentient. Given that possibility, we would be not only cruel to damage these animals, but perhaps would also deprive ourselves of an invaluable resource in understanding the roots of consciousness.
Anybody caught just willfully harassing a whale would face a hefty fine or even jail time. To kill entire herds of several species of dolphins and whales is, understandably, a much worst offence. The question to be answered here is: Can the army be allowed to just ignore the current law in peace time, arguing that laws are annoying for them?
The problem was that they were breaking the law for no reason, not if this whales can use facebook or not.
Intelligence, when gathered in accordance with the law, is an invaluable resource in producing those end products.
Security may be something that many in the United States take for granted, but it is one of the basic requirements of human beings, perhaps even prior to food, water, and shelter on the hierarchy of needs.
It's about a nation's interests. We shouldn't pretend that, if those interests are better served by closing down the sea for commerce and waging war, the navy would do anything else. The navy is a tool of power and suppression of its enemies.
If you want those times of peace to last, or if you just want to ensure peace on your terms after war, you need to practise for war.