Senator McCain became a member of the Armed Services Committee, with which he had formerly done his Navy liaison work; he also joined the Commerce Committee and the Indian Affairs Committee. He continued to support the Native American agenda. As first a House member and then a senator—and as a lifelong gambler with close ties to the gambling industry—McCain was one of the main authors of the 1988 Indian Gaming Regulatory Act, which codified rules regarding Native American gambling enterprises. McCain was also a strong supporter of the Gramm-Rudman legislation that enforced automatic spending cuts in the case of budget deficits.