Perception + meaning
In good marriages there is mutual influence (that's partly what makes you close).
When you read your spouse's emotions (by observing behavior) you think about what this means to you. These interpretations and meanings fire through various brain structures to result in emotional changes in yourself. This is how your spouse's emotions can affect yours--of course, it works in the other direction too.