[client] Assert the budget received after backend call is the one requested (fix #1044)
This just adds an assert to make sure the budget received from the backend matches the one requested. If this is not wanted anymore we can just close #1044 (closed).