Judge rules for U.S. government in fatal Wyoming bear attack