There's nothing else she can do really. Without the Imperial forces behind her she's got no one to protect her. Ulfric could have her killed if she refuses, and she doesn't seem like a warrior sort of Nord who could fight Ulfric herself.
So she has to swallow her pride and sing the praises of the man who killed her husband if she wants to stay alive and well.