US troops kill 24 militants in Baghdad fighting