Return a copy of an object, filtered to have only keys that match the given glob patterns.