Palestinians rally behind Hamas ahead of US-crafted resolution