Determining whether or not to defend an indefensible law is also purview of the office, and a privilege and function of the position.
Considering that she was well within her rights and duties of office, it would be _highly_ irresponsible to leave her key position vacant, especially at this time of so much induced chaos.