Federal judge dismisses states' challenge to Dodd-Frank law