N. Irish court says Brexit will not need MPs' approval