Yes. It was your spouse's primary residence for all of that time. You can take the full marriage exclusion both federally and in California.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"