Controversial plans for a new prison on the border of Chorley and Leyland have been given the go-ahead by Deputy PM Angela Rayner.