Solar power has hit a major milestone in the United States, providing a larger share of the nation's electricity than coal for the first time.