Is the following sentence correct:
"They have the Supreme Court on their side which ruled in their favor."
What I want to say is that they (some group of people) have the Supreme Court on their side and that the Supreme Court ruled something in their (some group of people) favor.
If not, how would I need to change the sentence?