Battery backup management system for supply rails