The federal stimulus program that many experts agree kept the U.S. economy running in the midst of an unprecedented financial crisis was especially valuable to Texas, which accepted more aid dollars than any other state apart from California, using them to close nearly 97 percent of its budget deficit last year.