The Social Security and Medicare trust funds will be insolvent by 2034 unless Congress acts, an annual report by the Treasury Department predicted.