To get butter out of fabrics, first remove as much of the butter as possible. Use a spoon to scrape as much of it as you can off the fabric, then blot it with a paper towel.
Next, pretreat the stain with something that dissolves grease, such as dishwashing liquid or shampoo. Apply it with your fingers or a cotton swab and let it sit.