Hamas scored an overwhelming victory in Palestinian elections in January , trouncing the ruling Fatah party .