Leeds beat Birmingham in a penalty shootout to squeeze into the FA Cup fifth round for the third time in four years.