Mandatory spending requires government expenses on programs mandated by law. Social Security and Medicare are the largest mandatory programs the U.S. government has to pay for. Congress establishes the mandatory programs.