Leeds United have confirmed the signing of Crewe midfielder Luke Murphy for a fee in the region of £1m.