The Supreme Court voted 6-3 that it’s unconstitutional for a state government to withhold taxpayer funds from religious schools.

The case, Carson v. Makin, involved two Maine families who were denied state tuition assistance because they wanted to enroll their kids at a private Christian school that provides religious teaching.

The state’s tuition assistance program only allows funding for private schools that are “nonsectarian.” The families sued, claiming that the state policy violated their First Amendment rights to exercise their religious freedom.