U.S. major indices move lower on Friday, but close up for the month