Meta is building an internal platform to track AI usage and spending in real time as it prepares for tighter budgeting and rising AI costs in the coming years.