Praying for God to hurt someone is not illegal, judge rules