One major work on this is David Harvey's A Brief History of Neoliberalism (2005). If you really want to get into the weed, the economist and historian Philip Mirowski digs into the origins of neoliberalism in any number of his books, like The Road from Mont Pelerin (2009)