The main purpose of this legislation is to improve maternal health care services under Medicaid by increasing the federal funding that states receive for these services. This is aimed at addressing disparities in maternal health and ensuring that women have access to quality care during and after pregnancy. The key provisions of the legislation include a higher federal matching rate for states that spend more on maternal health care services.