US equities posted their best monthly gain since 2020 in April as the S&P 500 set a closing record of 7,209 driven by a 10 percent surge in business investment.