Plans to merge two West Sussex schools have been approved by the county council.