; or (ii) compliance with the order is unreasonable or otherwise unlawful. (B) Stay of disclosure of named customer or subscriber communications or records The obligation of a provider of electronic communications service or remote computing service to disclose the information requested in the warrant, order, or subpoena to which the order in paragraph (1) applies is stayed upon the filing of the application, petition, or motion under this paragraph pending resolution of the application, petition, or motion, unless the court with jurisdiction over the challenge determines, based on a showing by the governmental entity, that the stay should be lifted in whole or in part prior to resolution. (C) Finality of order The decision of the court resolving an application, petition, or motion under this paragraph shall constitute a final, appealable order. (6) Exception (A) In general A provider of electronic communications service or remote computing service to which an order under paragraph (1) applies, or an officer, employee, or agent thereof, may disclose information otherwise subject to any applicable nondisclosure requirement to— (i) those persons to whom disclosure is necessary in order to comply with the warrant, order, or subpoena; (ii) an attorney, in order to obtain legal advice or assistance relating to the order issued under paragraph (1) or the warrant, order, or subpoena to which the order applies