Republican and Democratic senators took umbrage at some of Neera Tanden’s past tweets that harshly criticized politicians from both parties.