A ruling that parts of the UK’s Illegal Migration Act are unlawful must be appealed due to the sweeping impact on asylum cases in Northern Ireland, senior judges have heard.