This statements of the Fourteenth were adopted for a reason. They were not without force and effect. They were intended by the framers of the Fourteenth to extend the jurisdiction and protection of federal courts to all rights recognized by the Constitution and Bill of Rights against actions by state government.
First, "any law" includes the state constitution, which is its supreme law, subject to the U.S. Constitution.
Second, for the framers of the 14th Amendment the term of art, "immunities", meant all those rights recognized and protected by the Constitution and Bill of Rights, including those of the Ninth and Tenth Amendments. The framers of the Fourteenth used the word "immunities" because the rights recognized and protected by the Constitution and Bill of Rights are rights against action by government, which are "immunities", as distinct from contractual or tort rights.
If there is any doubt as to what the framers of the Fourteenth meant by their words, here are some more of their words, taken from debates in Congress and the press during the drafting and ratification debates on the amendment. What follows has been heavily based on Halbrook, Stephen P.,
Freedmen, the Fourteenth Amendment, and the Right to Bear Arms, 1866-1876, Westport, CT: Praeger, 1998.
Intent of the Fourteenth Amendment was to Protect All Rights