If it wasn't done by accident, then it was likely lobbied for by bigger tech companies that are already profitable. They stand to benefit the most from this kind of legislation by destroying all the small competition, and by being able to buy them up for cheap.
The amortization change was a deliberate part of the 2017 tax cut. One of the express purposes of the tax changes was to raise taxes on liberals, and I guess they figured that companies that take the R&D credit are run by liberals.