The High Court is to conduct a hearing into whether a solicitor acting for Syrian refugees in an action against the EU and the Irish State should pay the legal costs of a case which was withdrawn a day after it started when a judge was told the two families are now in Germany.