Unveiling the Role of Learning Rate Schedules via Functional Scaling Laws