BUG: Resampling to "B" frequency with closed="right" and label="right" adds empty bins
- [x] closes #59495
- [x] Tests added and passed
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/source/whatsnew/v3.0.0.rst`



fixed bug: Resampling to frequency='B' with closed='right'a nd label='right'

@MarcoGorelli, seems like the reproducible example was affected by the changes in your PR #55283. I corrected the definition of `_get_time_bins` to get the expected behavior in the example. However, this caused some of your tests to fail, so I updated the expected output. Would you mind reviewing my changes? thanks for the ping, will take a look next week This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.