In a 5-4 ruling Monday, the court chose to allow strip searches for new inmates in jails, including arrests for minor offenses.