Retrieve batches for an organization with pagination and optional search by name.
Returns a paginated list of batch jobs with their metadata including batch ID, creation timestamp, and job counts. If ‘query’ is provided, only batches whose name matches (case-insensitive, substring) will be returned.