; or (B) except as provided in paragraph (3)(B), cause a delay in the timelines for the consideration of an application for permit to drill with respect to a lease issued under the lease sale that is the subject of the civil action. (2) Remand; processing of applications for permit to drill If, in a civil action described in paragraph (1), the environmental review for a lease sale is found by the applicable court to violate the National Environmental Policy Act of 1969 ( 42 U.S.C. 4321 et seq. )— (A) notwithstanding chapter 5 or 7 of title 5, United States Code (commonly referred to as the Administrative Procedures Act ), the applicable court shall not set aside the lease sale and vacate the leases issued pursuant to the sale but instead remand the matter to the Secretary of the Interior to resolve the violation