Plans to make changes to Wycombe General Hospital have been given the go ahead.