I saw a movie on Amazon Prime (I think) about some alien spacecraft that appear all over the Earth just hovering in the sky for several months. I believe the movie is Canadian. Most of the characters work for a NASA-like space organization, and they spend most of the movie trying to figure out what the purpose of the spacecraft. They assume that the intention is bad for us poor Earthlings.
At the end...
...the head of the space organization says something like "we could not have been more wrong!" She and the rest of the space organization staff cheer as they watch the alien spacecraft shoot out projectiles to protect the Earth from some kind of potentially cataclysmic meteor shower.
It was a pretty good story, without any movie stars I recognized, so it was probably a lower budget movie, possibly an indie.