WASHINGTON — Democrats are increasingly optimistic they will take back control of the Senate in November, buoyed by establishment wins in Maryland and the key battleground state of Pennsylvania.

Former government official Katie McGinty easily dispatched Joe Sestak in Pennsylvania’s Senate Democratic primary on Tuesday, benefiting from an infusion of cash from national Democratic groups and last-minute backing from Vice President Joe Biden and President Obama.