Firstly congratulations and sorry to hear you've had a tough night.
Can I ask, what makes you think you haven't got enough milk for him? Is it because he took the formula straight away and settled?
With the recent the tongue tie cut, potentially your baby is learning to feed again? Is his latch good? Is your positioning good? Have you sort some professional guidance on this?
Combination feeding whilst trying to build your supply needs some professional advice / support. It isn't easy. Ultimately when you feed baby milk not from you, your body won't produce that milk unless you tell it to, i.e from pumping or baby feeding from it. Your body works in a supply and demand way - baby suckles, your body makes milk / baby doesn't suckle or feed, your body will reduce the milk it makes over time.
The odd top up like you've done, shouldn't have huge effects on your supply, however you may find you're full a bit later, so express it off (hand express if you havent got a pump) so that your body knows to continue to produce milk.
If you want to regularly top up with formula, you will need to decide how often and when, so that your body can get in a routine matched to it.
Remember your baby is only 4 weeks old. Having a rough night and your baby taking a bottle of formula doesn't necessarily mean you are not producing enough milk. It could be a whole host of reasons why baby hasn't settled. Have a read about The Fourth Trimester as this may help set your expectations of what a newborn baby will be like.