Kamala Harris was a US Senator at the time.
True, but she was a senator with no immediate executive authority. The most she could do was to threaten to introduce anti Twitter legislation.