Select the “Sauté” function on the Instant Pot® and add butter once hot. Add onion and season with salt and black pepper, to taste. Cook, stirring occasionally, until onions develop a bit of color and soften, approximately 4-5 minutes. Add garlic and sauté for an additional minute.