Judge dismisses fair funding lawsuit