Representing the kind of moderate, suburban district where President Trump has proved unpopular, Costello, 41, who lives right outside West Chester, was already facing the most difficult race of any GOP incumbent in Pennsylvania. But he had a district that leaned right — until the state Supreme Court ruled that it was part of a map unfairly skewed toward Republicans and drew new districts it believes are more logical and compact.