Have you looked at Roll-up fields? You might have to create a 1:N relationship between Project and Budget Lines to make this happen. Make sure you read the Rollup column considerations section of the documentation. The Roll-up fields only calculate every 24hrs on a schedule.
Alternatively, you could us Power Automate to do this aggregation.