An Egyptian court declared Hamas a "terrorist organization" on Saturday, further isolating the rulers of the Gaza Strip who once found a warm welcome under the country's past Islamist government.