Prime Minister George Papandreou of Greece won a crucial vote of confidence late Tuesday, with all 155 lawmakers of the Socialist party expressing their support for his beleaguered government, significantly above the absolute majority of 151 votes required by Greece’s 300-seat Parliament.