From a review of companiesmarketcap.com, of valuetoday.com and of Google Finance websites and of SEC filings, there were 14 Companies headquartered in Massachusetts with recent stock markets caps above $20 Bil. GE was headquartered in Connecticut for the majority of the 13 years from 2008 to 2021 and thus was not included in the below Massachusetts Companies' table.
From Company financial Statements contained in the SEC website, the table below shows the Audited Gold-Standard US GAAP Consolidated Net Income (Loss) from Continuing Operations for each of these 14 largest Massachusetts Companies for annual year 2021, Biden's first year in office, for 2020, Trump's last year in office, for 2016, Obama's last year in office and for 2008, Bush's last year in office.