The equal protection clause of the 14th amendment was designed to ensure that everyone entitled to those protections get the protections it ensured such as a law making it illegal to steal. Anti-theft laws provide a protection for the citizens against other citizens and because there is not a single group specified in the law it means that everyone is entitled to the protections that that law provides. The 14th amendment ensures that state governments must protect everyone entitled to those protections equally so it can't only protect the white population from theft and deny other groups the same protection. This was done because southern governments were allowing blacks to be lynched so they demanded that every citizen of every state be given the same protections that that law provided and specified. That does not mean whatever protections are provided by a law that those protections should be extended beyond the group it is suppose to protect. Marriage laws provide 'protections' to married couples but only for those that are within what is called a legal marriage. The 14th amendment does not extend protections to persons outside what the law intended. It only ensures that the protected groups get the protections that they are entitled to under that law. To do otherwise is to expand the law beyond what the original law intended which is nothing more than creating new laws from the bench. This ensures that the law will protect everyone that the law is suppose to protect.