As Washington embarks on a multi-billion dollar, decade-long semiconductor development campaign, Beijing is reckoning with its own 20-year effort that’s largely failed to deliver. Both will need to grapple with wasted funds and misguided goals as they play catch-up to Taiwan and South Korea.