CAIRO — 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.The ruling by Judge Mohamed el-Sayed of the Court For Urgent Matters described Hamas as targeting both civilians and security forces inside Egypt's restive Sinai Peninsula and aiming to harm the country.