Sorry for my ignorance, but why is this attributed to Star Trek? Because the show had a cultural impact, which helped conservation efforts? Or is it something that happened in the show, relevant to whales? (Nothing against Star Trek, of course.)
The plot of the fourth movie, Star Trek IV: The Voyage Home, is a slightly off the wall plot.
A giant alien space probe arrives in orbit of Earth making weird noises, it sucks up all the power from ships in orbit and power grids on the surface and starts evaporating the oceans. Turns out it wants to talk to humpback whales, which in this timeline were hunted to extinction in the 20th century, so there are no humpback whales on earth for the probe to talk to, and it's literally tearing up the oceans to find them.
Meanwhile, Kirk and his crew of main characters are on Vulcan (Spock's home planet) in possession of a stolen Klingon warship which they've been preparing for the flight back to Earth to face court martial, because of the events of the previous movie. They learn of the problem before they reach Earth, they figure out that the probe wants to talk to whales. "can we pretend to be whales?" "we can make the sounds, but we don't speak the language." So they just casually decide to time travel by doing a high speed lap of the sun. No shit they just fly really fast around the sun and arrive in the 1980's, where it just so happens the Bay Aquarium has a breeding pair of captive humpback whales on display. Meanwhile, the trip through time ran them out of fuel. Cue a LucasArts style multi-problem plot where they have to figure out how to refuel their ship, modify it to carry humpback whales, find and acquire the whales, and then get back to the future.
Spoiler alert: They do. They crash their ship into 23rd century San Fransisco bay and release the whales, which do this whole new age thing with the probe, which then goes "Understandable, have a nice day" sucks in its volleyball and floats away. Then that court martial scene which is actually part of the previous movie not this one ensues, where Kirk is punished with a reward.
TL;DR the main plot of the fourth movie involves the Enterprise's crew, but not the Enterprise, going back in time to bring humpback whales back from extinction.
In one of the movies there is an alien spaceship that wants to communicate with the whales except they're all extinct, for some reason the lack of the whales is causing all of the ships to shut, so the crew have to travel back in time to the 20th century to get a whale for the alien ship to communicate with.
Yeah that was the plot, the original Star Trek movies were kind of bad really.
Nah, it wasn't bad at all. The whale extinction plot was to raise awareness of the discovery of whale intelligence and to spark resistance against the immorality of whale hunting. Perhaps it was a little hamfisted, but Star Trek was always woke as hell.
Star Trek has never shied away from telepathy, so it wasn't much of a stretch to have the whales in contact with a powerful alien intelligence elsewhere in the galaxy. It wasn't the lack of whales that caused ships to shut down and Earth's weather to whip up hurricanes, but rather the overwhelming energy field of the probe the aliens sent to investigate the silence.
All that and it somehow managed to showcase an absolute banger punk song raging against nuclear holocaust.
That's just a normal Star Trek plot. Hell, that's toned down for normies compared to half the stuff they get up to in any given series. At least it's an alien looking probe and not a giant green hand or space Lincoln.
How dare you! Wrath of Kahn was/is really good. Or fun. Or both.
The first movie, oh god that was bad. But I would rather watch any of them (including the TNG ones which weren't great) over the new ones. Now those are bad.
The plot was originally written as a plague that could only be cured with a plant that's extinct, but they went with the whale plot because it's more visual.
Their population is 135,000 as of 2018 according to Wikipedia. Although local populations ie in the Arabian Sea might be at risk having been genetically isolated for up to 70,000 years and in smaller numbers
If your reaction to a meme about Scotty saving the whales is "but I can unsave them right now" I really think you might need some help. And not at killing whales. Like, emotionally.