Aligning herself with Obama pays off for Clinton