California Governor Gavin Newsom and top Democratic legislators have reached an agreement on a $351.7 billion state budget that will be bolstered in part by a newly proposed tax on digital software sales.

The spending plan for the fiscal year that begins July 1 is Newsom’s last as governor and comes as state finances are buoyed by an artificial intelligence boom fueled by home-state companies.