A council has agreed to spend £1.28m to improve sea defences which councillors were told had become "severely degraded".