Any court showdown between Apple and the Home Office over customer data must be held in public, MPs have demanded.