A Pennsylvania judge on Wednesday refused to grant an injunction on a new voter identification law that Democrats say could harm President Obama’s re-election chances by unfairly targeting minorities, college students and others in a key swing state.