The United States declared Hamas a terrorist organization in 1995 , making contributions to it illegal .