Federal judge rejects challenge to bail law