Northern Ireland court rejects Brexit appeal