Privacy International and Liberty’s complaint adds pressure on government as iPhone maker fights demand in court