Foot the Bill

What does the idiom “foot the bill” mean?

Definition: pay for something

Example: My dad is footing the bill for the wedding, so I feel I have to let him invite at least a few of his friends.