I have come across it in Crash Course World History. It is at 5 minute and 39 second. Here it goes:
The thinking was that if humans did their jobs, then the pantheon of gods would maintain cosmic order, and since the pharaohs became gods upon their death, it made sense to please them even unto pyramids.
I cannot get what please them unto means. Could you please rephrase the sentence for me please?