Plans to rebuild a crumbling path which leads to a beach in Dorset have been approved by councillors.