High court strikes down law favoring unwed mothers over unwed fathers