The move comes after years of criticism over the treatment of marine mammals in captivity.