Planning has been approved to transform Glasgow's historic dry docks - which had a starring role in a hit Hollywood film - into a new neighbourhood with hundreds of new homes.