Illegal Migration Act should not apply in Nothern Ireland, judge rules