The legal fight is the latest to land before the Supreme Court in recent years that involve religious entities' participation in state-funded programs.