The Gospel of Philip doesn't actually say that Mary was married to Jesus, it only says that she was his companion. Here's one passage from The Gospel of Philip I could find:
There were three who always walked with the Lord: Mary, his mother, and her sister, and Magdalene, the one who was called his companion. His sister and his mother and his companion were each a Mary.
In the original Greek "companion" is written as: "koinonos". But this word doesn't mean spouse or sexual consort. It means "partner" and is used several times in the New Testament with this ordinary meaning. For example, when Paul refers to himself as Philemon's koinonos ("If thou count me therefore a partner, receive him as myself." - Philemon 1:17, KJV).
The only other passage I've been able to find, from The Gospel of Philip, relevant to our discussion is this:
And the companion of the Savior is Mary Magdalene. But Christ loved her more than all the disciples and used to kiss her often on her mouth. The rest of the disciples were offended by it and expressed disapproval. They said to him, 'Why do you love her more than all of us?' The Savior answered and said to them, 'Why do I not love you like her?' When a blind man and one who sees are both together in darkness, they are no different from one another. Then the light comes, then he who sees will see the light, and he who is blind will remain in darkness.
Even if we suppose this passage conveys historically accurate information, the passage itself seems to disprove Jesus' marriage to Mary. If Jesus had been married to Mary then surely his kissing her wouldn't have been an offense. Surely Jesus could've satisfied the disciples' question, "Why do you love her more than all of us?", by explaining that Mary was his wife. Jesus doesn't do this though. Instead, he explains his affection for Mary by pointing out she has "light" and this context, it's clear he's talking about knowledge and that is consistent with other gnostic gospels. Even if we take this passage literally, nothing in the above passages suggests they were married.
That's it, that is the best the non-canonical gospels can do for those that believe that Jesus was married to Mary. It even appears to contradict the idea that they were married. The only way to find evidence for marriage in the non-canonical gospels is to put it in there yourself!
The Gospel of Mary does mention Mary Magdalen but I can't seem to find any passages there that even hints that she was married to Jesus. All I could find was this passage:
Peter said to Mary, 'Sister, we know that the Saviour loved you more than the rest of women.
Nothing in The Gospel of Mary points to a sexual or spousal relationship between Jesus and Mary. Jesus' love for Mary leads him to reveal special truth to her, not to take her as his wife.
None of the other non-canonical gnostic gospels like The Gospel of Peter and The Gospel of Thomas make any suggestion of Jesus' marital status. The gnostic "The Pistis Sophia", the "The Sophia of Jesus Christ" and "The Dialogue of the Savior" also fail to mention or suggest any marriage. And, of course, we have the four canonical Gospels, which also fail to imply any such marriage.