Washington (CNN) The Supreme Court agreed Monday to hear an appeal by a Catholic foster agency that argues it's in danger of losing its government contract because it refuses to recruit or certify same sex couples as potential foster parents.

The case which raises significant religious liberty issues will be heard next term and comes after Justice Anthony Kennedy, who often ruled in favor of LGBT rights, was replaced on the bench by Justice Brett Kavanaugh, who is considered to be more conservative on the issue. Supreme Court experts believe that Kavanaugh and Justice Neil Gorsuch will work to expand religious liberty rights under the Free Exercise clause.

If the court were to modify or gut precedent in this area it would be a major victory for supporters of religious freedom and a sign that the court -- bolstered by two of Trump's nominees -- is poised to turn to the right on these issues.

"This case could be the blockbuster of the court's term that starts this October, because it asks the justices to revisit a landmark -- and controversial -- 1990 ruling about the interaction between religious liberty and neutral anti-discrimination laws, said Steve Vladeck, CNN Supreme Court analyst and professor at the University of Texas School of Law.

"For three decades, the court has held that neutral government laws that incidentally burden religious exercise are not unconstitutional. But if the court overturns that decision, it could have enormous consequences, especially for the applicability of anti-discrimination laws to LGBT individuals," Vladeck said.

Read More