Bank groups said they are moving to dismiss their lawsuit against the Federal Reserve over its stress tests, resolving a years-long dispute after the agency overhauled the annual exam in a win for Wall Street lending giants.