Ruling in Montana case called 'welcome victory' for religious freedom