An unwed mom’s unsuccessful battle in the Supreme Court shows how judiciary, regulations link parenthood to marriage