If we're going to throw out the overly-literal interpretation of "equality under the law" that means "exact same rules regardless of socioeconomic status or other context", then why only do this for the very narrow case of API reimplementation? Why not just break up Google for the crime of being a threat to the sovereignty of its host government and people? If Google is powerful enough that we
need to start "taking away rights" in order to create a level playing field, then we should start talking about killing Google, if only to minimize how many rights need to be taken away and for how long.
Furthermore, the underlying reason why we're making Google pay is still total bullshit. Remember: we're not arguing for "start-ups should get a pass on copyright infringement but Google should pay billions". We're arguing over 20 function signatures. Nobody should have to pay for that, and any copyright law that covers function signatures is unfit for purpose, even if it's a bill of attainder[0] that only applies to Google.
[0] A law that specifically prescribes a punishment to be applied to one person and one person alone. For example, if Congress were to pass a bill saying "Larry Page is guilty of copyright infringement for scraping the Internet and has no civil rights", that is a bill of attainder.
This is such an easily abusable process that the Constitution, unamended, forbids it.