The decision was the latest in a series of rulings forbidding the exclusion of religious institutions from government programs.