Two climate activists were taken into custody on Friday for an attack last month on a sculpture by the French artist Edgar Degas at the National Gallery of Art, US officials said.