Justice Ruth Bader Ginsburg, who wrote the decision, said federal law "protects institutionalized persons who are unable freely to attend to their religious needs and are therefore dependent on the government's permission and accommodation for exercise of their religion.